/**
 * 
 */
package com.gopay.common.user.payee.manager.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gopay.common.domain.cps.transfer.GopayPayee;
import com.gopay.common.user.payee.dao.CpsTransReceiver00900QueryDAO;
import com.gopay.common.user.payee.manager.CpsTransReceiver00900QueryManager;

/**
 * @CpsTransReceiver00900QueryManagerImpl.java
 * @author xiefei
 * @2013-3-11 下午2:44:46  www.gopay.com.cn Inc.All rights reserved.
 */
@Service("cpsTransReceiver00900QueryManager")
public class CpsTransReceiver00900QueryManagerImpl implements CpsTransReceiver00900QueryManager {

    @Resource(name="cpsTransReceiver00900QueryDAO")
    private CpsTransReceiver00900QueryDAO cpsTransReceiver00900QueryDAO;
    /* (non-Javadoc)
     * @see com.gopay.common.base.manager.BaseManager#get(java.io.Serializable)
     */
    @Override
    public GopayPayee get(Integer id) {

        return cpsTransReceiver00900QueryDAO.find(GopayPayee.class, id);
    }

    /* (non-Javadoc)
     * @see com.gopay.common.base.manager.BaseManager#get(java.util.Map)
     */
    @Override
    public List<GopayPayee> get(Map<Object, Object> paraMap) {

        return null;
    }

    /* (non-Javadoc)
     * @see com.gopay.common.base.manager.BaseManager#getAll()
     */
    @Override
    public List<GopayPayee> getAll() {

        return this.cpsTransReceiver00900QueryDAO.findAll(GopayPayee.class);
    }

    /* (non-Javadoc)
     * @see com.gopay.common.cps.manager.tran.CpsTransReceiver00900QueryManager#getByCustIdPageList(java.lang.String, java.lang.String, int, int)
     */
    @Override
    public List<GopayPayee> getByCustIdPageList(String custId, String custType, int pageSize, int pageNo,String rCustId,
            String rGopayAcct) {

        return this.cpsTransReceiver00900QueryDAO.findByCustIdPageList(custId, custType, pageSize, pageNo, rCustId, rGopayAcct);
    }

    /* (non-Javadoc)
     * @see com.gopay.common.cps.manager.tran.CpsTransReceiver00900QueryManager#getByCustIdCount(java.lang.String, java.lang.String)
     */
    @Override
    public int getByCustIdCount(String custId, String custType, String rCustId,
            String rGopayAcct) {
        // TODO Auto-generated method stub
        return this.cpsTransReceiver00900QueryDAO.findByCustIdCount(custId, custType,rCustId,
                 rGopayAcct);
    }

}
